package com.yx.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author yangx
 */
@Service
@FeignClient(value = "user-service")
public interface OrderService {
    /**
     * 测试feign远程调用
     * @return String
     */
    @GetMapping("/user/test")
    String getUser();
}
